#pragma once

#define IP_MAXLENGTH 16
#define PORT_MAXLENGTH 6
#define HOSTNAME_MAXLENGTH 32

int NetInit();
void ip_itow(const SOCKADDR_IN* sockaddrin, TCHAR ip[IP_MAXLENGTH]);
void GetHostInfo(TCHAR hostname[HOSTNAME_MAXLENGTH], TCHAR hostip[IP_MAXLENGTH]);